<?php if ($position == 'content_top' or $position == 'content_bottom') { ?>
    <?php if ($products) { ?>
        <div class="box">
            <div class="box-heading">
                <a href="<?php echo $category_href ?>"><?php echo $category_name; ?></a>
                <span class="flr see_more"><a href="<?php echo $category_href ?>"><?php echo $see_more; ?></a></span>
            </div>
            <div class="box-content">
                <div class="box-product">
                    <?php foreach ($products as $product) { ?>
                        <div>
                            <div class="product-infomartion">
                                <?php if ($product['thumb']) { ?>
                                    <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
                                <?php } ?>

                                <div class="rating"><img src="catalog/view/theme/default/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>

                                <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
                                <?php if ($product['price']) { ?>
                                    <div class="price">
                                        <?php if (!$product['special']) { ?>
                                            <?php echo $product['price']; ?>
                                        <?php } else { ?>
                                            <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
                                        <?php } ?>
                                    </div>
                                <?php } ?>     
                            </div>
                            <div class="button-cart"><a class="button" onclick="addToCart('<?php echo $product['product_id']; ?>');" style="vertical-align: middle;"><?php echo $tnt_button_cart ?></a></div>
                        </div>
                    <?php } ?>
                </div>
            </div>
        </div>
    <?php } ?>

<?php } else if ($position == 'column_left' or $position == 'column_right') { ?>        
    <?php if ($products) { ?> 
        <div class="box-left">
            <div class="box-heading"><a href="http://giasoc.com.vn/index.php?route=information/sitemap"><?php echo $category_name; ?></a></div>
            <div class="box-content">
                <div class="box-product-left">
                    <?php foreach ($products as $product) { ?>
                        <div>
                            <?php if ($product['thumb']) { ?>
                                <div class="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>" /></a></div>
                            <?php } ?>
                            <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
                            <div class="price">
                                <?php if (!$product['special']) { ?>
                                    <?php echo $product['price']; ?>
                                <?php } else { ?>
                                    <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
                                <?php } ?>
                            </div>

                        </div>
                    <?php } ?>
                </div>
            </div>
        </div>                                   
    <?php } ?>  
<?php } ?>
